variable "ack_name" {
  description = "Provider an one ack cluster name"
}
variable "ack_version" {
  description = "Specity ack cluster version"
}
variable "ack_timezone" {
  default = "Asia/Shanghai"
}
variable "resource_group_id" {
  default = "rg-acfmw2vt737frxy"
  description = "Deeproute.ai aliyun account default resource group"
}
variable "ack_pod_vswitch_ids" {
  type = list
  default = []
}
variable "ack_worker_vswitch_ids" {
  type = list
}
variable "ack_node_cidr_mask" {
  default = "24"
}
variable "ack_enable_maintenance_window" {
  default = false
}
variable "tags" {
  type = map
}
variable "cluster_addons" {
  description = "List of values to assign to cluster_addons"
  type = list(object({
    name           = string
    config         = string
    disabled       = bool
  }))
  default = [
    { name: "arms-prometheus", config: "", disabled: true },
    { name: "nginx-ingress-controller", config: "", disabled: true },
    { name: "alicloud-monitor-controller", config: "", disabled: true },
    { name: "csi-provisioner", config: "", disabled: true },
    { name: "csi-plugin", config: "", disabled: true },
    { name: "storage-operator", config: "", disabled: true },
    { name: "metrics-server", config: "", disabled: true },
    { name: "logtail-ds", config: "", disabled: true },
    { name: "alibaba-log-controller", config: "", disabled: true },    
    { name: "ack-node-local-dns", config: "", disabled: false },
    { name: "security-inspector", config: "", disabled: true },
    { name: "ack-node-problem-detector", config: "{\"sls_project_name\":\"\"}", disabled: true }
  ]
}
variable "ack_k8s_pod_cidr" {
  type = string
}
variable "ack_k8s_service_cidr" {
  type = string
}
variable "ack_security_group_id" {
  default = ""
}